package com.rjwh.dingdong.client.player;


import com.rjwh.dingdong.client.bean.localbean.PlayList;
import com.rjwh.dingdong.client.bean.localbean.Song;

/**
 * Created with Android Studio.
 * User: ryan.hoo.j@gmail.com
 * Date: 9/5/16
 * Time: 6:02 PM
 * Desc: IPlayer
 */
public interface IPlayback {

    void setPlayList(PlayList list);

    PlayList getPlayList();

    boolean play();

    boolean play(PlayList list);

    boolean play(PlayList list, int startIndex);

    boolean play(Song song);

    boolean playLast();

    boolean playNext();

    boolean pause();

    boolean stop();

    boolean isPlaying();

    PlayState getPlayStatus();

    int getProgress();

    int getDuration();

    Song getPlayingSong();

    boolean seekTo(int progress);

    void setPlayMode(PlayMode playMode);


    void releasePlayer();

//    interface Callback {
//
//        void onSwitchLast(Song last);
//
//        void onSwitchNext(Song next);
//
//        void onComplete(Song next);
//
//        void onPlayStatusChanged(int isPlaying);
//    }
}
